/*
 * @Autor: zwf
 * @Date: 2022-09-05 21:28:51
 * @Version: 1.0
 * @Description: 全局加载封装
 **/
import { ElMessageBox } from 'element-plus'

const ekMessageBox = {
    confirm(msg,title = '温馨提示'){
        return new Promise((resolve,reject)=>{
            ElMessageBox.confirm(msg,title, {
                confirmButtonText: '确认',
                cancelButtonText: '取消',
                type: 'warning',
            })
            .then(() => {
                resolve()
            })
            .catch(() => {
                reject();
            })
            
        });
       
    }

}
export default ekMessageBox

